﻿using System;
using System.Collections.Generic;

namespace HCQ2_Model.ClassRoom
{
    /// <summary>
    /// 直播课堂列表返回结果
    /// </summary>
    public class ClassRoomQueryResultDto
    {
        /// <summary>
        /// 课堂ID
        /// </summary>
        public int? RmId { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>        
        public int? UserId { get; set; }
        /// <summary>
        /// 目录ID
        /// </summary>
        /// <remarks>
        /// 说明：虚仿课程ID
        /// </remarks>        
        public int? FolderId { get; set; }
        /// <summary>
        /// 目录略缩图地址
        /// </summary>
        public string FolderImgUrl { get; set; }
        /// <summary>
        /// 课堂名称
        /// </summary>        
        public string CrName { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>        
        public string StartTime { get; set; }
        /// <summary>
        /// 时长，单位：分钟
        /// </summary>        
        public int? StartLen { get; set; }
        /// <summary>
        /// 授课范围；1(局域网)、2(互联网)
        /// </summary>        
        public int? Scope { get; set; }        
        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }
        /// <summary>
        /// 费用
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 课堂是否结束
        /// </summary>
        public bool? IfFinish { get; set; }
        /// <summary>
        /// 课堂视频地址
        /// </summary>
        public string VideoUrl { get; set; }
        /// <summary>
        /// 创建人用户名
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 目录路径
        /// </summary>
        public string FolderPath { get; set; }
        /// <summary>
        /// 上课人数
        /// </summary>
        public int UserAttendNum { get; set; }
        /// <summary>
        /// 上限人数
        /// </summary>
        public int PersonNumber { get; set; }
        /// <summary>
        /// 上课设备
        /// </summary>
        public int? Device { get; set; }
        /// <summary>
        /// 课堂课件明细
        /// </summary>
        public List<ClassRoomFileQueryResultDto> RoomFiles { get; set; } = new List<ClassRoomFileQueryResultDto>();
        /// <summary>
        /// 创建人头像地址
        /// </summary>
        public string CreateNamePhotoUrl { get; set; }
    }

    /// <summary>
    /// 课堂课件明细
    /// </summary>
    public class ClassRoomFileQueryResultDto
    {
        /// <summary>
        /// 课件ID
        /// </summary>
        public int? FileId { get; set; }
        /// <summary>
        /// 课件名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 略缩图地址
        /// </summary>
        public string FileImgUrl { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string FileNode { get; set; }
        /// <summary>
        /// 是否已下载
        /// </summary>
        public bool? IsDown { get; set; }
        /// <summary>
        /// 附件大小
        /// </summary>
        public string FileSize { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int Num { get; set; }
        /// <summary>
        /// 是否默认启动课件
        /// </summary>
        public bool? IfDefault { get; set; }
    }
    /// <summary>
    /// 查询结果
    /// </summary>
    public class ClassRoomFileQueryResultDtoDB : ClassRoomFileQueryResultDto
    { 
        /// <summary>
        /// 课堂ID
        /// </summary>
        public int RmId { get; set; }
    }
}
